﻿@using Super.Entities;
@model List<Supplier>
@using Super.Infrastructure;
@using Super.DomainService;
@using Super.Common;
@{
    ViewBag.Title = "产品管理";
    
}
<div class="pageHeader">
    <form id="pagerForm" rel="pagerForm" onsubmit="return navTabSearch(this);" action="/admin/supplier/index" method="post">
    <div class="searchBar">
        <ul class="searchContent">
            <li>
                @Html.DWZTextBox("JianMa", "简码")
            </li>
            <li>
                @Html.DWZTextBox("Name", "供应商名称")
            </li>
        </ul>
        @Html.SubBar()
    </div>
    <input type="hidden" name="pageNum" value="1" /><!--【必须】value=1可以写死-->
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" href="/admin/supplier/edit" target="navTab" mask="true" height="600"><span>添加</span></a></li>
            <li><a class="delete" href="/admin/supplier/Delete?id={sid_user}" target="ajaxTodo" title="确定要删除吗？" warn="请选择一个供应商"><span>删除</span></a></li>
            <li><a class="edit" href="/admin/supplier/edit?id={sid_user}" target="navTab" mask="true" height="600" warn="请选择一个供应商"><span>修改</span></a></li>
        </ul>
    </div>
    <div layouth="116" id="w_list_print">
        <table class="list" width="98%" targettype="navTab" asc="asc" desc="desc">
            <thead>
                <tr>
                    <th width="300">名称</th>
                    <th width="80">简码</th>
                    <th width="100">联系人</th>
                    <th width="100">联系电话</th>
                    <th width="100">旺旺</th>
                    <th width="100">QQ</th>
                    <th width="100">网址</th>
                    <th width="100">购买总数</th>
                    <th width="100">交易总金额</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr target="sid_user" rel="@item.ID">
                        <td>@item.Name</td>
                        <td>@item.JianMa</td>
                        <td>@item.ContactName</td>
                        <td>@item.Telephone</td>
                        <td>@item.WangWang</td>
                        <td>@item.QQ</td>
                        <td><a href="@item.Url" title="@item.Url" target="_blank">点击访问</a></td>
                        <td>@item.BuyGoodsCount</td>
                        <td>@item.TotalPrice</td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
    <div class="panelBar">
        <div class="pages">
            <span>共 @ViewBag.RecordCount 条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="@ViewBag.RecordCount" numperpage="@ViewBag.PageSize" pagenumshown="10" currentpage="@ViewBag.PageIndex">
        </div>
    </div>
</div>
